/**
 * 2017年4月24日
 */
package cn.edu.bjtu.constant;

/**
 * 一些k-v映射的key写在这个类里面
 * 比如登陆成功之后要把验证信息setAttribute那个key是什么写在这个类里面,value是什么请添加注释
 * @author Alex
 *
 */
public final class Constant {
	public final static String SESSION_ATTRIBUTE_AUTH = "auth"; //用户所在的权限组及其可进行的操作
	public final static String SESSION_ATTRIBUTE_USERID = "userid"; //用户id，登录时的用户名
	public final static String SESSION_ATTRIBUTE_NAME = "name"; //用户名字
	public final static String SESSION_ATTRIBUTE_GROUP = "group"; //权限组
	
	public final static String COMMAND_EXEC_CONTROLLER = "command_exec_controller";
	public final static String COMMAND_PUBLISHER = "command_publisher";
	public final static String COMMAND_TYPE = "command_type";
	public final static String COMMAND_TEXT_TRANS = "command_text_trans";
	public final static String COMMAND_TYPE_LDA = "command_type_lda";
	public final static String COMMAND_TYPE_LDA_TRANS = "command_type_lda_trans";
	public final static String COMMAND_TYPE_TFIDF = "command_type_tfidf";
	public final static String COMMAND_TYPE_TFIDF_TRANS = "command_type_tfidf_trans";
	public final static String COMMAND_TYPE_WORD2VEC = "command_type_word2vec";
	public final static String COMMAND_TYPE_WORD2VEC_TRANS = "command_type_word2vec_trans";
	public final static String COMMAND_TYPE_WORD2VEC_FILE_TRANS = "command_type_word2vec_file_trans";
	
	public final static String COMMAND_TYPE_REFLECT = "reflect";
	public final static String COMMAND_TYPE_REFLECT_KEY = "context_class";
	
	public final static String COMMAND_NO_CACHE = "nocache";
	public final static String COMMAND_RESULT = "result";
	public final static String COMMAND_URI = "command_uri";
	
	public final static String COMMAND_TYPE_SVM_TRAIN = "svm_train";
	public final static String COMMAND_TYPE_SVM_TEST = "svm_test";
	
	
	//子模块查询
	public final static String COMMAND_TYPE_WORD2VEC_SYNC = "word2vec_sync_command";
	public final static String COMMAND_TYPE_LDA_SYNC = "lda_sync_command";
	
	
	
	public final static String JSP_MAP_RENDER_ATTRIBUTE = "jsp_map_render_attribute";
	
	
	
	public final static String REMOTE_LDA_URL_BASE = "http://1.1.1.1";
	public final static String REMOTE_WORD2VEC_URL_BASE = "http://2.2.2.2";
	public final static String REMOTE_RNN_URL_BASE = "http://3.3.3.3";
	
	public final static String APPLICATION_CONFIGURATION_KEY = "Appkey"; 

}
